.class public Lcom/estrongs/android/pop/app/compress/j;
.super Lcom/estrongs/android/ui/dialog/q;
.source "PasswordPromptDialog.java"


# instance fields
.field private a:Landroid/widget/EditText;

.field private b:Landroid/widget/CheckBox;

.field private c:Z


# direct methods
.method public constructor <init>(Landroid/content/Context;ZZ)V
    .locals 1

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/ui/dialog/q;-><init>(Landroid/content/Context;)V

    const/4 v0, 0x1

    .line 2
    iput-boolean v0, p0, Lcom/estrongs/android/pop/app/compress/j;->c:Z

    .line 3
    iput-boolean p2, p0, Lcom/estrongs/android/pop/app/compress/j;->c:Z

    .line 4
    invoke-static {p1}, Lcom/estrongs/android/pop/esclasses/h;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object p1

    const p2, 0x7f0c02be

    const/4 v0, 0x0

    .line 5
    invoke-virtual {p1, p2, v0}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object p1

    const p2, 0x7f0901ef

    .line 6
    invoke-virtual {p1, p2}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/CheckBox;

    iput-object p2, p0, Lcom/estrongs/android/pop/app/compress/j;->b:Landroid/widget/CheckBox;

    .line 7
    new-instance v0, Lcom/estrongs/android/pop/app/compress/j$a;

    invoke-direct {v0, p0}, Lcom/estrongs/android/pop/app/compress/j$a;-><init>(Lcom/estrongs/android/pop/app/compress/j;)V

    invoke-virtual {p2, v0}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    const/4 p2, 0x0

    if-eqz p3, :cond_0

    .line 8
    iget-object p3, p0, Lcom/estrongs/android/pop/app/compress/j;->b:Landroid/widget/CheckBox;

    invoke-virtual {p3, p2}, Landroid/widget/CheckBox;->setVisibility(I)V

    goto :goto_0

    .line 9
    :cond_0
    iget-object p3, p0, Lcom/estrongs/android/pop/app/compress/j;->b:Landroid/widget/CheckBox;

    const/16 v0, 0x8

    invoke-virtual {p3, v0}, Landroid/widget/CheckBox;->setVisibility(I)V

    :goto_0
    const p3, 0x7f0903fb

    .line 10
    invoke-virtual {p1, p3}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object p3

    check-cast p3, Landroid/widget/EditText;

    iput-object p3, p0, Lcom/estrongs/android/pop/app/compress/j;->a:Landroid/widget/EditText;

    .line 11
    invoke-virtual {p3}, Landroid/widget/EditText;->getInputType()I

    move-result p3

    const v0, 0x7f0901f0

    .line 12
    invoke-virtual {p1, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/CheckBox;

    .line 13
    invoke-virtual {v0, p2}, Landroid/widget/CheckBox;->setVisibility(I)V

    .line 14
    new-instance p2, Lcom/estrongs/android/pop/app/compress/j$b;

    invoke-direct {p2, p0, p3}, Lcom/estrongs/android/pop/app/compress/j$b;-><init>(Lcom/estrongs/android/pop/app/compress/j;I)V

    .line 15
    invoke-virtual {v0, p2}, Landroid/widget/CheckBox;->setOnCheckedChangeListener(Landroid/widget/CompoundButton$OnCheckedChangeListener;)V

    .line 16
    iget-object p2, p0, Lcom/estrongs/android/pop/app/compress/j;->a:Landroid/widget/EditText;

    const-string p3, ""

    invoke-virtual {p2, p3}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 17
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setContentView(Landroid/view/View;)V

    const p1, 0x7f1105e5

    .line 18
    invoke-virtual {p0, p1}, Lcom/estrongs/android/ui/dialog/q;->setTitle(I)V

    return-void
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/compress/j;)Landroid/widget/EditText;
    .locals 0

    .line 2
    iget-object p0, p0, Lcom/estrongs/android/pop/app/compress/j;->a:Landroid/widget/EditText;

    return-object p0
.end method

.method static synthetic a(Lcom/estrongs/android/pop/app/compress/j;Z)Z
    .locals 0

    .line 1
    iput-boolean p1, p0, Lcom/estrongs/android/pop/app/compress/j;->c:Z

    return p1
.end method


# virtual methods
.method public a()Ljava/lang/String;
    .locals 3

    .line 3
    iget-object v0, p0, Lcom/estrongs/android/pop/app/compress/j;->a:Landroid/widget/EditText;

    invoke-virtual {v0}, Landroid/widget/EditText;->getText()Landroid/text/Editable;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/Object;->toString()Ljava/lang/String;

    move-result-object v0

    .line 4
    iget-boolean v1, p0, Lcom/estrongs/android/pop/app/compress/j;->c:Z

    if-nez v1, :cond_0

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/compress/j;->a:Landroid/widget/EditText;

    const-string v2, ""

    invoke-virtual {v1, v2}, Landroid/widget/EditText;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-object v0
.end method

.method public b()Z
    .locals 1

    .line 1
    iget-boolean v0, p0, Lcom/estrongs/android/pop/app/compress/j;->c:Z

    return v0
.end method
